import Login from './views/login.vue'
import Home from './views/home/home.vue'
import LiveBaike from './views/liveBaike/baike.vue'
import NotFound from './views/404.vue'
import Main from './views/main.vue'
import LiveMan from './views/live/liveManager.vue'
import LiveCreate from './views/live/createLive.vue'
import HostMan from './views/host/hostManager.vue'
import LiveRoomConfig from './views/live/liveRoomConfig.vue'
import OverView from './views/live/overview.vue'
import LiveEdit from './views/live/liveEdit.vue'
import LiveTab from './views/live/liveTab.vue'
import LiveGuide from './views/live/liveGuide.vue'
import ReplayMan from './views/live/replayManager.vue'
import CommentMan from './views/live/commentManager.vue'
import DataStat from './views/live/dataStat.vue'
import Down from './views/down.vue'
import ChatRoom from './views/live/chatroom.vue'
import ViewCode from './views/live/viewCode.vue'
const routers = [

    /*{
        path: '/',
        component: Main,
        name: 'main',
        iconCls: 'el-icon-message',//图标样式class
        meta: {
            title: ''
        },
        children: [
            {
                path: '/', component: Home, name: '首页菜单', hidden: false,
                children:[
                    {path:'/', component: Account, name: 'host'}
                ]
            }
        ],

    },*/
    {
        path: '/',
        component: Main,
        // name: 'live-main',
        meta: {
            title: '直播管理'
        },
        children: [
            {  path: '/', component: LiveMan, name: 'liveMan', hidden: false }
        ],

    },
    {
        path: '/host',
        component: Main,
        // name: 'data-main',
        meta: {
            title: '主播管理'
        },
        children: [
            {  path: '/', component: HostMan, name: 'hostMan', hidden: false }
        ],

    },
    {
        path: '/liveBaike',
        component: Main,
        // name: 'account-main',
        meta: {
            title: '直播百科'
        },
        children: [
            {  path: '/', component: LiveBaike, name: 'liveBaike', hidden: false }
        ],

    },
    {
        path: '/down',
        component: Main,
        // name: 'account-main',
        meta: {
            title: '工具下载'
        },
        children: [
            {  path: '/', component: Down, name: 'down', hidden: false }
        ],

    },
    {
        path: '/create_event',
        component: Main,
        // name: '创建直播',
        iconCls: 'el-icon-message',//图标样式class
        meta: {
            title: '创建直播'
        },
        children: [
            {  path: '/', component: LiveCreate, name: '创建直播间', hidden: false }
        ],

    },
    {
        path: '/room_config',
        component: Main,
        // name: 'live-main',
        meta: {
            title: '直播管理'
        },
        children: [{
            path: '/', component: LiveRoomConfig,
            children:[
                {path:'/', component: OverView, name: 'overview'},
                {path:'/edit', component: LiveEdit, name: 'edit'},
                {path:'/live_tab', component: LiveTab, name: 'liveTab'},
                {path:'/live_guide', component: LiveGuide, name: 'liveGuide'},
                {path:'/replay_man', component: ReplayMan, name: 'replay'},
                {path:'/comment_man', component: CommentMan, name: 'comment'},
                {path:'/data_stat', component: DataStat, name: 'dataStat'},
                {path:'/chat_room', component: ChatRoom, name: 'chatroom'},
                {path:'/view_code', component: ViewCode, name: 'viewCode'}
            ]
        }],

    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];
export default routers;